/* 
Coded 5/11/24 - Questions to terence.wood@anu.edu.au

This calls the individual do files that produce the analysis in the paper:
"Does independent review reduce the reported performance of aid projects?"

Coded in Version 18.0 SE.

This file calls do files to:

1. Produce descriptive tables and charts.
2. Address potential issues in Diff in Diff analysis.
3. Conduct the main analysis.
4. Produce the appendices

If you just want to run one or some of the analysis, simply comment out the 
other do files.

PLEASE REMEMBER YOU WILL NEED TO CHANGE FOLDER NAMES IN THE GLOBAL 
MACROS BELOW
*/

******************************Preliminaries*************************************

set more off
version 18.0

clear
estimates clear
macro drop _all
graph drop _all

******************************Folder locations**********************************
/*
 These are global macros containing folder & file names.
 First is where your data file is stored.
 Second is where your do files are stored.
 Third is where your results will be stored.
 The fourth is the name of the file the data are stored in.
 
 REMEMBER TO CHANGE ALL MACROS TO REFLECT THE NAMES YOU ARE USING ON YOUR 
 COMPUTER
*/

// Location of data
global data_loc "INSERT FOLDER DATA IS IN HERE"   
global do_loc "INSERT FOLDER DO FILES FOR THIS ANALYSIS ARE IN HERE"
global res_loc "INSERT LOCATION WHERE YOU WANT THE RESULTS TO GO HERE" 
global data_file "6 Combined full dataset 4 11 24.dta" // change this if you
													   // have renamed dataset.

******************************Run core do files*********************************

/* This runs the individual do files that:
1. Produce the Descriptive Stats.
2. Address potential issues
3. Run the main analysis
4. Produce the appendices.
*/

cd "$do_loc"
do "2 Descriptive.do"

cd "$do_loc"
do "3 Issues.do"

cd "$do_loc"
do "4 Main analysis"

cd "$do_loc"
do "5 Appendices"

// Tidy up
global drop _all
